@extends('admin.main')

@section('body')
    <div class="main-title">
        <h2>{{isset($authGroup) ? '编辑':'新增'}}用户组</h2>
    </div>

    <form action="{{urlAdmin('auth','postWriteGroup')}}" enctype="application/x-www-form-urlencoded" method="POST"
          class="form-horizontal">
        <div class="form-item">
            <label for="auth-title" class="item-label">用户组</label>
            <div class="controls">
                <input id="auth-title" type="text" name="title" class="text input-large" value="{{isset($authGroup) ? $authGroup['title']:''}}"/>
            </div>
        </div>
        <div class="form-item">
            <label for="auth-description" class="item-label">描述</label>
            <div class="controls">
                <label class="textarea input-large"><textarea id="auth-description" type="text" name="description">{{isset($authGroup) ? $authGroup['description']:''}}</textarea></label>
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="id" value="{{isset($authGroup) ? $authGroup['id']:''}}"/>
            <button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
@endsection